﻿using HeadFirst._04.Factory.Subs;
using System;

namespace HeadFirst._04.Factory
{
    class Program
    {
        static void Main(string[] args)
        {
            PizzaStore nyStore = new NYPizzaStore();
            ChicagoPizzaStore chicagoStore = new ChicagoPizzaStore();

            Pizza pizza = nyStore.OrderPizza("cheese");
            Console.WriteLine($"Ethan ordered a {pizza.Name}\n");


             pizza = chicagoStore.OrderPizza("cheese");
            Console.WriteLine($"Josh ordered a {pizza.Name}\n");

            Console.Read();
        }
    }
}
